<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<LINK href="resource/opencs.css" type=text/css rel=stylesheet>
<script type="text/javascript" src="../../logger.js"  simplemode=true skinId=3></script>

<script>
	var count1=50,count2=100;
	var total=count1+count2;
	function test(){
		var cDiv=document.getElementById($Log.fieldsetId());
	
		test0();
		test1();

	}
	
	function test0(){
		$PF.begin();
			$PF.begin();
				$PF.begin();
					alert($Log.loginfo,"blue");//function
				$PF.end("一般示例");
				$PF.begin();
					for(var i=0;i<count1;i++){
						testDate();
					} 
				$PF.end("时间格式化");
			$PF.end("阶段合计","blue");
	}
	function test1(){
			$PF.begin();
				for(var k=0;k<=count2;k++){
					alert(Math.random(),"blue");	
				}
			$PF.end("执行"+count2+"遍循环");
		$PF.end("总合计");
	}
	
	function testDate(){
		var d= new Date();
		alert("此时-此刻 : "+d.format("yyyy/MM/dd hh:mm:ss S 星期W[q]"),"white");
		d.setDate(d.getDate()+88);
		alert("88天以后 : "+d.format("yyyy-MM-dd hh:mm"),"white");
		d.setDate(d.getDate()+88);
		alert("88天以后 : "+d.format("yyyy年MM月dd日 周W[q季]"),"white");
		d.setDate(d.getDate()+88);
		alert("88天以后 : "+d.format("yyyy/MM/dd 周W[q]"),"white");
	}
</script>
<a href="../../example.htm"><img src="../kingfishers.PNG" align=left border=0></img></a><br>
<input type=button value="performance" onclick="test()">